package org.jeecg.modules.tls.blog.article.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.jeecg.modules.tls.blog.tag.vo.TagVo;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @description:
 * @author: 天之璎珞
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ArticleVo {

    private String id;

    private String author;

    private String userId;

    private String avatar;

    private String title;

    private String content;

    private String summary;

    private String categoryId;

    @TableField(exist = false)
    private String categoryName;

    /**创建时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    private String coverImg;

    private String topImg;

    private List tags;


}
